public class TJob {
	public static final byte SEND = 0;
	public static final byte RECEIVE = 1;
	public static final byte TASK = 2;
	
	private long execTime;
	private byte jobType, taskName;
	private TPacket packet;
	private String execTimeS;
	private TObject jobDoer, jobCreator;
	
	public TJob(byte jobType, byte taskName, TPacket pk, TObject jobCreator, TObject jobDoer) {
		execTime = -1;
		execTimeS = null;
		this.jobType = jobType;
		this.taskName = taskName;
		packet = pk;
		this.jobDoer = jobDoer;
		this.jobCreator = jobCreator;
	}
	
	public byte getJobType() {
		return jobType;
	}
	
	public byte getTaskName() {
		return taskName;
	}
	
	public TObject getDoer() {
		return jobDoer;
	}
	
	public TObject getCreator() {
		return jobCreator;
	}
	
	public TPacket getPacket() {
		return packet;
	}
	
	public void setExecTime(long time) {
		execTime = time;
	}
	
	public long getExecTime() {
		return execTime;
	}
	
	public void setExecTimeS(String time) {
		execTimeS = time;
	}
	
	public String getExecTimeS() {
		return execTimeS;
	}
}
